package org.apogee.mil.client.portal.pages;

import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.google.gwt.user.client.Element;

public class NewsForm extends LayoutContainer {

	@Override  
	protected void onRender(Element parent, int index) {  
		super.onRender(parent, index);  
		createForm();  
	}

	private void createForm() {	  
		ContentPanel nav = new ContentPanel();  
		nav.setHeading("News");  
		nav.setBorders(true);  
		nav.setBodyStyle("fontSize: 12px; padding: 6px");  
		nav.addText("<p>Welcome to Airforce CDC Practice Test Site. This site is now in Beta Testing.</p>"
				+"<p>Messages sent from trainers/trainees are displayed on the right of the screen</p>"
				+"<p>Trainers can review their trainees tests progress and send their trainee's a message</p>"
				+"<p>Trainees can now send their trainers a message</p>"
				+"<p>Admins can now update and add test or review questions</p>"
				+"<p>Test groups can now be setup along with assigning users and test to the groups</p>"
				+"<p>Users can now take tests for CDC 2A353. They can review and print their scores along with the missed questions</p>");
		nav.setAutoHeight(true);
		add(nav);
	}
}
